package com.azt.api.pojo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * 签约申请
 * Created by LiQZ on 2017/3/14.
 */
public class SignApplyReq {

    /**
     * 申请人id
     */
    private Integer userId;

    /**
     * 查询联系人
     */
    @NotBlank(message = "请填写联系人姓名")
    private String contacter;

    /**
     * 电话
     */
    @NotBlank(message = "请填写联系人电话")
    @Length(max = 25, message = "联系电话输入过长")
    private String phone;

    /**
     * 采购金额
     */
    @Pattern(regexp="[0-9]*\\.?[0-9]+", message="请输入承诺交易量")
    private String purchaseAmount;

    /**
     * 公司名称
     */
    @NotBlank(message = "请填写公司名称")
    private String companyName;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContacter() {
        return contacter;
    }

    public void setContacter(String contacter) {
        this.contacter = contacter;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPurchaseAmount() {
        return purchaseAmount;
    }

    public void setPurchaseAmount(String purchaseAmount) {
        this.purchaseAmount = purchaseAmount;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
}
